package org.dromara.visitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.visitor.domain.dto.RuleQueryReq;
import org.dromara.visitor.domain.dto.RuleResp;
import org.dromara.visitor.domain.entity.Rule;
import org.dromara.visitor.domain.entity.RuleOrg;

import java.util.List;

public interface RuleMapper extends BaseMapper<Rule> {


    List<RuleResp> queryRuleList(Page page, @Param("req") RuleQueryReq req);

    List<RuleOrg> queryRuleOrgList(@Param("ruleIds") List<Long> ruleIds);
}
